var $http = axios.create({
    baseURL: 'http://localhost:7777'
})

var common = {
    get(url, data) {
        return $http.get(url, {
            params: data
        });
    },
    post(url, data) {
        return $http.post(url, data);
    },

    getParam(key) {
        const url = new URL(window.location.href);
        return url.searchParams.get(key);
    }
}